package com.kmxy.kmxy_base;

public class LocationData {
    private double latitude;
    private double longitude;
    private double altitude;
    private String address;
    private String type;
    private int timeoutCount;

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getAltitude() {
        return altitude;
    }

    public void setAltitude(double altitude) {
        this.altitude = altitude;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getTimeoutCount() {
        return timeoutCount;
    }

    public void setTimeoutCount(int timeoutCount) {
        this.timeoutCount = timeoutCount;
    }


    public void clean() {
        latitude = 0;
        longitude = 0;
        altitude = 0;
        address = null;
        timeoutCount = 0;
    }

    @Override
    public String toString() {
        return "LocationData{" +
                "latitude=" + latitude +
                ", longitude=" + longitude +
                ", altitude=" + altitude +
                ", address='" + address + '\'' +
                ", type='" + type + '\'' +
                ", timeoutCount=" + timeoutCount +
                '}';
    }
}
